package com.googlecode.connectlet.crypto.stream;

public class PlainCipher extends StreamCipher {
	private static final long serialVersionUID = 1L;

	@Override
	public void reset() {/**/}

	@Override
	public int output() {
		return 0;
	}

	@Override
	public void output(byte[] b, int off, int len) {
		for (int i = 0; i < len; i ++) {
			b[off + i] = 0;
		}
	}

	@Override
	public int update(int b) {
		return b;
	}

	@Override
	public void update(byte[] src, int srcPos, byte[] dest, int destPos, int length) {
		System.arraycopy(src, srcPos, dest, destPos, length);
	}
}